# -*- coding: utf-8 -*-
# standard
import os
import sys

# third

# local
_P_PATH = os.path.dirname(os.path.realpath(__file__))
if _P_PATH not in sys.path:
    sys.path.append(_P_PATH)


"""
@Title:   
@File: 批量重命名.py
@Author: walle 2023年11日03日 15时25分56秒
@Version: 1.0.0
@Desc: 
"""


SOURCR_DIR = "/mnt/projects/work_data/"



def batch_change_names():
    for file_name in os.listdir(SOURCR_DIR):
        if file_name.startswith("work_data"):
            src = os.path.join(SOURCR_DIR, file_name)
            dst = os.path.join(SOURCR_DIR, file_name[9:])
            os.rename(src=src,dst=dst)


if __name__ == '__main__':
    batch_change_names()
    pass